﻿using System.Runtime.Serialization;

namespace CC.Yacht.Messages
{
    [DataContract]
    public class BaseResponse
    {
        #region Public Properties
        [DataMember]
        public long ErrorId { get; set;}

        [DataMember]
        public ErrorType ErrorType { get; set; }

        public bool IsError { get { return ErrorType != ErrorType.None; } }
        #endregion
    }
}
